/*
 * @Description:
 * @Version: 2.0
 * @Autor: Seven
 * @Date: 2023-10-16 10:09:08
 * @LastEditors: Seven
 * @LastEditTime: 2023-10-19 13:42:46
 */
import hyRequest from "../request";

//设备台账
export function getOperationEquipmentData() {
  return hyRequest.get({
    url: "/equipment/list",
  });
}
export function getOperationEquipmentDetail(id) {
  return hyRequest.get({
    url: `/equipment/${id}`,
  });
}

export function getOperationEquipmentAdd(data) {
  return hyRequest.post({
    url: "/equipment/add",
    data,
  });
}

export function getOperationEquipmentDelete(ids) {
  return hyRequest.delete({
    url: `/equipment/remove/${ids}`,
  });
}

//设备登记
export function getOperationDeviceList(data) {
  return hyRequest.get({
    url: "/device/list",
    data,
  });
}

export function getOperationDeviceDetail(id) {
  return hyRequest.get({
    url: `/device/${id}`,
  });
}
export function getOperationDeviceAdd(data) {
  return hyRequest.post({
    url: `/device/add`,
    data,
  });
}

export function getOperationDeviceRemove(ids) {
  console.log(ids, "🚀");
  return hyRequest.delete({
    url: `/device/remove/${ids}`,
  });
}

//故障提报
export function getOperationOrderFalutList(data) {
  return hyRequest.get({
    url: `/project/order/list`,
    data,
  });
}
export function getOperationOrderFalutAdd(data) {
  return hyRequest.post({
    url: `/project/order/add`,
    data,
  });
}

export function getOperationOrderFalutRemove(ids) {
  return hyRequest.delete({
    url: `/project/order/delete/${ids}`,
  });
}

export function getOperationOrderFalutDetail(ids) {
  return hyRequest.get({
    url: `/project/order/details/${ids}`,
  });
}

export function getOperationOrderFalutHandle(id) {
  return hyRequest.get({
    url: `/project/order/handle/${id}`,
  });
}
export function getOperationOrderFalutGenerate(id) {
  return hyRequest.get({
    url: `/project/order/generate/${id}`,
  });
}

//故障工单
export function getOperationTroubleList(ids) {
  return hyRequest.get({
    url: `/trouble/list`,
  });
}
export function getOperationTroubleRemove(id) {
  return hyRequest.get({
    url: `/trouble/remove/${id}`,
  });
}

//检修工单
export function getOperationMaintenancList(ids) {
  return hyRequest.get({
    url: `/trouble/list`,
  });
}

export function getOperationMaintenancAdd(data) {
  return hyRequest.post({
    url: `/maintenance/add`,
    data,
  });
}
export function getOperationMaintenancEdit(data) {
  return hyRequest.post({
    url: `/maintenance/edit/${data}`,
    data,
  });
}
export function getOperationMaintenancRemove(data) {
  return hyRequest.post({
    url: `/maintenance/remove/${data}`,
    data,
  });
}

//年计划

//月计划

//周计划

//专家知识库
